<% String path = request.getContextPath(); %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head>
    <title>修改管理员信息</title>
    <link href="${pageContext.request.contextPath}/bootstrap460/css/bootstrap.css" rel="stylesheet">
</head>
<body>
<% String UserId = request.getParameter("UserId"); %>
<% String UserName = request.getParameter("UserName"); %>
<% String password = request.getParameter("password"); %>
<% String root = request.getParameter("root"); %>
<jsp:include page="../common/css_js.jsp"/>
<div class="container">
    <form action="${pageContext.request.contextPath}/student/normal/updateAdmin">
        <h3 class="mt-3 md-3">修改管理员信息
            <span style="margin-left: 650px">
                <input class="btn btn-success" type="submit">
                <button class="btn btn-info" onclick="backAndFresh()">返回</button>
        </span>
        </h3>
        <div class="form-group"><label>UserId</label>:${UserId}<input type="text" name="UserId" id="UserId" value="<%=UserId%>" class="form-control" readonly="readonly"/><br></div>
        <div class="form-group"><label>管理员名</label><input type="text" name="UserName" id="UserName" value="<%=UserName%>" class="form-control"/><br></div>
        <div class="form-group"><label>密码</label><input type="text" name="password" id="password" value="<%=password%>" class="form-control"/><br></div>
        <div class="form-group"><label>权限</label><input type="text" name="root" id="root" value="<%=root%>" class="form-control"/><br></div>
    </form>

</div>
<script>
    function backAndFresh(){
        var url =document.referrer;
        window.location=url;
    }
</script>
</body>
</html>
